package com.hdu.enums;


import lombok.Getter;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

@Getter
public enum Priority {

    HIGH(3),
    NORMAL(2),
    LOW(1);

    Priority(int priority) {
        this.priority = priority;
    }

    private final int priority;


    public static List<Integer> allSupportPriority() {
        return Arrays.stream(Priority.values())
                .map(Priority::getPriority)
                .sorted((a,b) -> b - a)
                .collect(Collectors.toList());
    }

}
